/**
 * 
 */
package bookshop.domain;

import java.util.Date;

/**
 * @author Administrator
 *
 */
public class Book extends ValueObject {

	private  String bookCode;
	private  String bookName;
	private  Double bookPrice;
	private  String bookAuthor;
	private  String bookPublisher;
	private  Date   bookPubDate;
	private Integer saleNumber=0;
	private String bookDesc; // 图书的描述
	private Integer bookMark; // 图书的评分
	private byte[] bookImage; // 图书的封面
	private  Category ctg;
	
	
	public Integer getSaleNumber() {
		return saleNumber;
	}
	public void setSaleNumber(Integer saleNumber) {
		this.saleNumber = saleNumber;
	}
	public String getBookDesc() {
		return bookDesc;
	}
	public void setBookDesc(String bookDesc) {
		this.bookDesc = bookDesc;
	}
	public Integer getBookMark() {
		return bookMark;
	}
	public void setBookMark(Integer bookMark) {
		this.bookMark = bookMark;
	}
	public byte[] getBookImage() {
		return bookImage;
	}
	public void setBookImage(byte[] bookImage) {
		this.bookImage = bookImage;
	}
	public String getBookCode() {
		return bookCode;
	}
	public void setBookCode(String bookCode) {
		this.bookCode = bookCode;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public Double getBookPrice() {
		return bookPrice;
	}
	public void setBookPrice(Double bookPrice) {
		this.bookPrice = bookPrice;
	}
	public String getBookAuthor() {
		return bookAuthor;
	}
	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}
	public String getBookPublisher() {
		return bookPublisher;
	}
	public void setBookPublisher(String bookPublisher) {
		this.bookPublisher = bookPublisher;
	}
	public Date getBookPubDate() {
		return bookPubDate;
	}
	public void setBookPubDate(Date bookPubDate) {
		this.bookPubDate = bookPubDate;
	}
	public Category getCtg() {
		return ctg;
	}
	public void setCtg(Category ctg) {
		this.ctg = ctg;
	}
	
	
	
	@Override
	public String toString() {
		return "图书信息:[图书编号=" + bookCode + ", 图书名称=" + bookName
				+ ", 图书价格=" + bookPrice + ", 图书作者=" + bookAuthor
				+ ", 图书出版社=" + bookPublisher 
				 + ", 图书描述" + bookDesc + ", 图书评分="
				+ bookMark 
				+ ", 所属类别=" + ctg + "]";
	}
	
	
	

}
